<template>
  <div class="box">
    <h1>Grandson</h1>
    <p>{{age}}--{{sex}}</p>
  </div>
</template>

<script>
export default {
  name: "Grandson",
  props: ["age" , "sex" , "getData2" , "getData3"],

 mounted() {
  this.getData2()
  this.getData3()
  this.$emit("abc")
 },
};
</script>

<style scoped>
.box {
  background: deepskyblue;
}
</style>
